<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="format-detection" content="telephone=no"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,minimum-scale=1" />

<title>我的创业计划</title>
<link rel="stylesheet" type="text/css" href="../../css/base.css">
<link rel="stylesheet" type="text/css" href="../../css/nctouch_member.css">
</head>
<body>
<style>
    .tuiguang{ display: block; min-height: 2.2rem; position:relative; overflow: hidden; z-index: 1; } 
	.tuiguang img { width: 100%;}
</style>
<div class="tuiguang">
<img src="../../images/haibao_bg.jpg" width="640px">
	<div style="position:absolute;left:28%; top:50%;"><img src="" id="erw">
	</div>
	<div style="position:absolute; left:18%; top:19%;font-size:0.75rem;line-height:2rem; font-weight:600"><i id="member_name"></i>&nbsp;&nbsp;[<i id="member_truename"></i>]</div>
</div>
<script type="text/html" id="list_model">
        <% if(list.length >0){%>
        <% for (var k in list) { var v = list[k]; %>
            <li>
				<div class="detail">会员：<%=v.member_name;%>,购买的订单数量：<%=v.invite_num;%></div>             
                <div class="money add"><%=v.invite_amount;%></div>
                <time class="date">返利</time>
            </li>
        <%}%>
        <li class="loading"><div class="spinner"><i></i></div>数据读取中</li>
        <%}else {%>
        <div class="nctouch-norecord pdre">
            <div class="norecord-ico"><i></i></div>
            <dl>
                <dt>您尚为推荐</dt>
				<dd>赶紧复制上面地址邀请拿返利吧</dd>
            </dl>
        </div>
        <%}%>
</script> 
<script type="text/javascript" src="../../js/config.js"></script> 
<script type="text/javascript" src="../../js/zepto.min.js"></script> 
<script type="text/javascript" src="../../js/template.js"></script> 
<script type="text/javascript" src="../../js/common.js"></script>
<script type="text/javascript" src="../../js/zepto.waypoints.js"></script>
<script type="text/javascript" src="../../js/ncscroll-load.js"></script> 
<script>
    $(function(){
        var key = getCookie('key');
        if (!key) {
            window.location.href = WapSiteUrl+'/tmpl/member/login.html';
            return;
        }
        //渲染list
        var load_class = new ncScrollLoad();
        load_class.loadInit({
            'url':ApiUrl + '/index.php?act=member_invite&op=inviteone',
            'getparam':{'key':key},
            'tmplid':'list_model',
            'containerobj':$("#pointsloglist"),
            'iIntervalId':true
        });
        $.ajax({
            type: "post",
            url: ApiUrl + "/index.php?act=member_index",
            data: {
                key: key
            },
            dataType: "json",
            success: function(key) {
         var invite_url = '推广链接：'+WapSiteUrl+'/tmpl/member/register.html?rec='+ key.datas.member_info.id;
        $('#invite_key').attr("value",invite_url);
		$('#erw').attr("src","http://bk.shiliang.org/phpqrcode/codes/code_"+key.datas.member_info.id+".png");
		$('#idname').html(key.datas.member_info.id);
		$('#member_name').html(key.datas.member_info.member_name);
		$('#member_truename').html(key.datas.member_info.member_truename);
            }
});
    });
</script>
</body>
</html>